package com.cn.design.factory.simple.static1;

import com.cn.design.factory.simple.IPhone;
import com.cn.design.factory.simple.MiPhone;
import com.cn.design.factory.simple.Phone;

/**
 * @author xuhui
 * @Description:
 * @date 2022-06-29 18:33
 **/
public class PhoneFactory1 {
    //静态多方法工厂
    public static Phone getMiPhone(){
        return new MiPhone();
    }
    public static Phone getIPhone(){
        return new IPhone();
    }
}
